package com.mtw.bbs.reply.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mtw.bbs.reply.pojo.entity.ReplySubject;
import jakarta.validation.constraints.NotNull;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;



@Mapper
public interface ReplySubjectMapper extends BaseMapper<ReplySubject> {


    /**
     * 更新评论数量
     *
     * @param countNumber       变化量
     * @param objectId          业务对象id
     * @param objectType        业务类型
     */
    int updateReplyCount(@NotNull @Param("countNumber") Integer countNumber,
                         @NotNull @Param("objectId") String objectId,
                         @NotNull @Param("objectType") String objectType);

}
